package com.org.flow.element.switchel;

import com.org.flow.system.model.bo.order.GovernmentBO;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeSwitchComponent;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;


@LiteflowComponent(id = "sw_ly", name = "预受理_渠道区分")
@Slf4j
@RequiredArgsConstructor
public class SwitchDataSourcesBus extends NodeSwitchComponent {

    @Override
    public String processSwitch() {
        GovernmentBO governmentBO = this.getRequestData();
        switch (governmentBO.getFrom()) {
            case "province":
                return "lite_province_star";
            case "city":
                return "lite_city_star";
            case "other":
                return "lite_other_star";
            default:
                return "";
        }
    }
}
